/*
 * DogeRecord.java
 *
 * Created on 27 luglio 2007, 10.36
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package dogeCore;

import java.util.Date;

/**
 *
 * @author daniele
 */
public class DogeRecord {
    
    //private int documentNumber;
    private String description;
    private Date expires;
    private Date date;
    private String binaryFileName;
    private String from;
    private String to;
    private String creator;
    private String insertionOperator;
    private String documentType;
    private String department;
    private byte[] binaryData;
    private int binarySize;
    private String binaryMime;
    
    /** Creates a new instance of DogeRecord */
    public DogeRecord() {
        //documentNumber=-1;
        description=null;
        expires=null;
        date=null;
        binaryFileName=null;
        from=null;
        to=null;
        creator=null;
        insertionOperator=null;
        documentType=null;
        department=null;
        binarySize=0;
        binaryMime=null;
    }
    
//    public int getDocumentNumber(){
//        return documentNumber;
//    }
//    public void setDocumentNumber(int number){
//        this.documentNumber=number;
//    }
    
    public String getDescription(){
        return description;
    }
    public void setDescription(String description){
        this.description=description;
    }

    public Date getExpirationDate(){
        return expires;
    }
    public void setExpirationDate(Date date){
        this.expires=date;
    }

    public Date getDate(){
        return date;
    }
    public void setDate(Date date){
        this.date=date;
    }
        
    public String getBinaryFileName(){
        return binaryFileName;
    }
    public void setBinaryFileName(String filename){
        this.binaryFileName=filename;
    }
    
    public String getFromSubject(){
        return from;
    }
    public void setFromSubject(String from){
        this.from=from;
    }

    public String getToSubject(){
        return to;
    }
    public void setToSubject(String to){
        this.to=to;
    }

    public String getCreator(){
        return creator;
    }
    public void setCreator(String creator){
        this.creator=creator;
    }

    public String getInsertionOperator(){
        return insertionOperator;
    }
    public void setInsertionOperator(String username){
        this.insertionOperator=username;
    }
    
    public String getDocumentType(){
        return documentType;
    }
    public void setDocumentType(String type){
        this.documentType=type;
    }

    public String getDepartment(){
        return department;
    }
    public void setDepartment(String department){
        this.department=department;
    }

    public byte[] getBinaryData() {
        return binaryData;
    }
    public void setBinaryData(byte[] data){
        this.binaryData=data;
    }

    public int getBinarySize() {
        return binarySize;
    }
    public void setBinarySize(int size){
        this.binarySize=size;
    }

    public String getBinaryMime() {
        return binaryMime;
    }
    public void setBinaryMime(String mime){
        this.binaryMime=mime;
    }

}
